package net.ib.rpc.message;

import com.google.protobuf.Message;
import com.google.protobuf.RpcCallback;

/**
 * m&talk server timeout RpcResponseInfo
 * 
 * @author zagals@infobank.net
 * @version 1.0
 * @since 11/02/24
 * @history
 */
public class RpcResponseInfo extends ResponseInfo {

	private int requestId;
	private final Message responseType;
	private final RpcCallback<Message> callback;

	public RpcResponseInfo(RpcCallback<Message> callback, Message responseType) {
		this.callback = callback;
		this.responseType = responseType;
	}

	public void setRequestId(int requestId) {
		this.requestId = requestId;
	}

	public int getRequestId() {
		return requestId;
	}

	public Message getResponseType() {
		return responseType;
	}

	public RpcCallback<Message> getCallback() {
		return callback;
	}
}
